package com.example.enterprise.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RiskLedgerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RiskLedgerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeIsNull() {
            addCriterion("identifytime is null");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeIsNotNull() {
            addCriterion("identifytime is not null");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeEqualTo(Date value) {
            addCriterion("identifytime =", value, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeNotEqualTo(Date value) {
            addCriterion("identifytime <>", value, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeGreaterThan(Date value) {
            addCriterion("identifytime >", value, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeGreaterThanOrEqualTo(Date value) {
            addCriterion("identifytime >=", value, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeLessThan(Date value) {
            addCriterion("identifytime <", value, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeLessThanOrEqualTo(Date value) {
            addCriterion("identifytime <=", value, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeIn(List<Date> values) {
            addCriterion("identifytime in", values, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeNotIn(List<Date> values) {
            addCriterion("identifytime not in", values, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeBetween(Date value1, Date value2) {
            addCriterion("identifytime between", value1, value2, "identifytime");
            return (Criteria) this;
        }

        public Criteria andIdentifytimeNotBetween(Date value1, Date value2) {
            addCriterion("identifytime not between", value1, value2, "identifytime");
            return (Criteria) this;
        }

        public Criteria andRisklevelIsNull() {
            addCriterion("risklevel is null");
            return (Criteria) this;
        }

        public Criteria andRisklevelIsNotNull() {
            addCriterion("risklevel is not null");
            return (Criteria) this;
        }

        public Criteria andRisklevelEqualTo(String value) {
            addCriterion("risklevel =", value, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelNotEqualTo(String value) {
            addCriterion("risklevel <>", value, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelGreaterThan(String value) {
            addCriterion("risklevel >", value, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelGreaterThanOrEqualTo(String value) {
            addCriterion("risklevel >=", value, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelLessThan(String value) {
            addCriterion("risklevel <", value, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelLessThanOrEqualTo(String value) {
            addCriterion("risklevel <=", value, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelLike(String value) {
            addCriterion("risklevel like", value, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelNotLike(String value) {
            addCriterion("risklevel not like", value, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelIn(List<String> values) {
            addCriterion("risklevel in", values, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelNotIn(List<String> values) {
            addCriterion("risklevel not in", values, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelBetween(String value1, String value2) {
            addCriterion("risklevel between", value1, value2, "risklevel");
            return (Criteria) this;
        }

        public Criteria andRisklevelNotBetween(String value1, String value2) {
            addCriterion("risklevel not between", value1, value2, "risklevel");
            return (Criteria) this;
        }

        public Criteria andDepartmentIsNull() {
            addCriterion("department is null");
            return (Criteria) this;
        }

        public Criteria andDepartmentIsNotNull() {
            addCriterion("department is not null");
            return (Criteria) this;
        }

        public Criteria andDepartmentEqualTo(String value) {
            addCriterion("department =", value, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentNotEqualTo(String value) {
            addCriterion("department <>", value, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentGreaterThan(String value) {
            addCriterion("department >", value, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("department >=", value, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentLessThan(String value) {
            addCriterion("department <", value, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentLessThanOrEqualTo(String value) {
            addCriterion("department <=", value, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentLike(String value) {
            addCriterion("department like", value, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentNotLike(String value) {
            addCriterion("department not like", value, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentIn(List<String> values) {
            addCriterion("department in", values, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentNotIn(List<String> values) {
            addCriterion("department not in", values, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentBetween(String value1, String value2) {
            addCriterion("department between", value1, value2, "department");
            return (Criteria) this;
        }

        public Criteria andDepartmentNotBetween(String value1, String value2) {
            addCriterion("department not between", value1, value2, "department");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneIsNull() {
            addCriterion("person_telephone is null");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneIsNotNull() {
            addCriterion("person_telephone is not null");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneEqualTo(String value) {
            addCriterion("person_telephone =", value, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneNotEqualTo(String value) {
            addCriterion("person_telephone <>", value, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneGreaterThan(String value) {
            addCriterion("person_telephone >", value, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneGreaterThanOrEqualTo(String value) {
            addCriterion("person_telephone >=", value, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneLessThan(String value) {
            addCriterion("person_telephone <", value, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneLessThanOrEqualTo(String value) {
            addCriterion("person_telephone <=", value, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneLike(String value) {
            addCriterion("person_telephone like", value, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneNotLike(String value) {
            addCriterion("person_telephone not like", value, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneIn(List<String> values) {
            addCriterion("person_telephone in", values, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneNotIn(List<String> values) {
            addCriterion("person_telephone not in", values, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneBetween(String value1, String value2) {
            addCriterion("person_telephone between", value1, value2, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andPersonTelephoneNotBetween(String value1, String value2) {
            addCriterion("person_telephone not between", value1, value2, "personTelephone");
            return (Criteria) this;
        }

        public Criteria andControldataIsNull() {
            addCriterion("controldata is null");
            return (Criteria) this;
        }

        public Criteria andControldataIsNotNull() {
            addCriterion("controldata is not null");
            return (Criteria) this;
        }

        public Criteria andControldataEqualTo(Date value) {
            addCriterion("controldata =", value, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataNotEqualTo(Date value) {
            addCriterion("controldata <>", value, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataGreaterThan(Date value) {
            addCriterion("controldata >", value, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataGreaterThanOrEqualTo(Date value) {
            addCriterion("controldata >=", value, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataLessThan(Date value) {
            addCriterion("controldata <", value, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataLessThanOrEqualTo(Date value) {
            addCriterion("controldata <=", value, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataIn(List<Date> values) {
            addCriterion("controldata in", values, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataNotIn(List<Date> values) {
            addCriterion("controldata not in", values, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataBetween(Date value1, Date value2) {
            addCriterion("controldata between", value1, value2, "controldata");
            return (Criteria) this;
        }

        public Criteria andControldataNotBetween(Date value1, Date value2) {
            addCriterion("controldata not between", value1, value2, "controldata");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdIsNull() {
            addCriterion("enterprise_id is null");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdIsNotNull() {
            addCriterion("enterprise_id is not null");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdEqualTo(Integer value) {
            addCriterion("enterprise_id =", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdNotEqualTo(Integer value) {
            addCriterion("enterprise_id <>", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdGreaterThan(Integer value) {
            addCriterion("enterprise_id >", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("enterprise_id >=", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdLessThan(Integer value) {
            addCriterion("enterprise_id <", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdLessThanOrEqualTo(Integer value) {
            addCriterion("enterprise_id <=", value, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdIn(List<Integer> values) {
            addCriterion("enterprise_id in", values, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdNotIn(List<Integer> values) {
            addCriterion("enterprise_id not in", values, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdBetween(Integer value1, Integer value2) {
            addCriterion("enterprise_id between", value1, value2, "enterpriseId");
            return (Criteria) this;
        }

        public Criteria andEnterpriseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("enterprise_id not between", value1, value2, "enterpriseId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}